[Solved] How can I use system.net.sockets in ASP.NET MVC ... | asp net mvc socket
HelloEveryone,IhaveworkedonsocketsinwinformsandconsoleapplicationsbutiamhavingsomeprobleminwritingthesameforASP.NetMVCapplication.MyProblemis *HowtouseSystem.Net.SocketsinASp.NetMVCApplicationtocreateasimplechatapp. Anyideas,samplesorexamplewillbeveryhelpfultome.Iwantthesocketworkinteractively...Thankingyou.WhatIhavetried:usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Web; usingSystem.Web.Mvc; usingSystem.Net; usingSystem.Net.Socke...
Hello Everyone, I have worked on sockets in winforms and console applications but i am having some problem in writing the same for ASP.Net MVC application.My Problem is * How to use System.Net.Sockets in ASp.Net MVC Application to create a simple chat app. Any ideas, samples or example will be very helpful to me.
I want the socket work interactively...
Thanking you.
What I have tried:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Net; using System.Net.Sockets; using System.Text;
namespace sgsmSocket.Controllers { public class HomeController : Controller { string res = ""; Socket server, client; byte[] _buffer; public HomeController() { StartServer(); }
private void StartServer() { ...