¡@

Home 

c# Programming Glossary: socket

How to config socket connect timeout in C#

http://stackoverflow.com/questions/1062035/how-to-config-socket-connect-timeout-in-c-sharp

to config socket connect timeout in C# C# When the Client tries to connect to.. is the method to config it The code I'm using to set up a socket connection is as following try m_clientSocket new Socket AddressFamily.InterNetwork.. Connection Failed MessageBox.Show se.Message c# sockets timeout share improve this question I found this. Simpler..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

ipEndPoint new IPEndPoint addresses 0 123 NTP uses UDP var socket new Socket AddressFamily.InterNetwork SocketType.Dgram ProtocolType.Udp.. SocketType.Dgram ProtocolType.Udp socket.Connect ipEndPoint Stops code hang if NTP is blocked socket.ReceiveTimeout.. ipEndPoint Stops code hang if NTP is blocked socket.ReceiveTimeout 3000 socket.Send ntpData socket.Receive ntpData..

Websocket server: onopen function on the web socket is never called

http://stackoverflow.com/questions/2211898/websocket-server-onopen-function-on-the-web-socket-is-never-called

server onopen function on the web socket is never called I'm.. server onopen function on the web socket is never called I'm trying to implement a C# web socket server.. socket is never called I'm trying to implement a C# web socket server but its giving me a few troubles. I'm running a webserver..

Interprocess communication for Windows in C# (.NET 2.0)

http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-sharp-net-2-0

required Note I'm asking about what to use a standard TCP socket named pipes or some other means of communication only. Thanks..

In C#, how to check if a TCP port is available?

http://stackoverflow.com/questions/570098/in-c-how-to-check-if-a-tcp-port-is-available

In C# to use a TcpClient or generally to connect to a socket how can I first check if a certain port is free on my machine..

Instantly detect client disconnection from server socket

http://stackoverflow.com/questions/722240/instantly-detect-client-disconnection-from-server-socket

detect client disconnection from server socket How can I detect that a client has disconnected from my server.. disconnection. Any help will be appreciated. .net c# sockets tcp connection share improve this question Since there.. Since there are no events available to signal when the socket is disconnected you will have to poll it at a frequency that..

How to write a scalable Tcp/Ip based server

http://stackoverflow.com/questions/869744/how-to-write-a-scalable-tcp-ip-based-server

From my research years ago showed that writing your own socket implementation was the best bet using the Asynchronous sockets... implementation was the best bet using the Asynchronous sockets. This meant that clients not really doing anything actually.. can write it however you want. private List xConnection _sockets Also you need the socket actually listenning for incomming..

Create “Hello Wold” WebSocket example

http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example

&ldquo Hello Wold&rdquo WebSocket example Edit 3 Able to send data now Deleted old examples..... of @Maksims Mihejevs. Server using System using System.Net.Sockets using System.Net using System.Security.Cryptography using System.Threading.. namespace ConsoleApplication1 class Program static Socket serverSocket new Socket AddressFamily.InterNetwork SocketType.Stream..

How to config socket connect timeout in C#

http://stackoverflow.com/questions/1062035/how-to-config-socket-connect-timeout-in-c-sharp

to set up a socket connection is as following try m_clientSocket new Socket AddressFamily.InterNetwork SocketType.Stream ProtocolType.Tcp.. a socket connection is as following try m_clientSocket new Socket AddressFamily.InterNetwork SocketType.Stream ProtocolType.Tcp.. try m_clientSocket new Socket AddressFamily.InterNetwork SocketType.Stream ProtocolType.Tcp IPAddress ip IPAddress.Parse serverIp..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

new IPEndPoint addresses 0 123 NTP uses UDP var socket new Socket AddressFamily.InterNetwork SocketType.Dgram ProtocolType.Udp.. uses UDP var socket new Socket AddressFamily.InterNetwork SocketType.Dgram ProtocolType.Udp socket.Connect ipEndPoint Stops code..

Websocket server: onopen function on the web socket is never called

http://stackoverflow.com/questions/2211898/websocket-server-onopen-function-on-the-web-socket-is-never-called

web socket is never called . I've been reading the The Web Socket protocol and I can't see what I'm doing wrong. Heres a bit of.. see what I'm doing wrong. Heres a bit of the server code Socket listener new Socket AddressFamily.InterNetwork SocketType.Stream.. wrong. Heres a bit of the server code Socket listener new Socket AddressFamily.InterNetwork SocketType.Stream ProtocolType.IP..

How to convert a structure to a byte array in C#?

http://stackoverflow.com/questions/3278827/how-to-convert-a-structure-to-a-byte-array-in-c

My full code is as follows. static void Main string args Socket MyPing new Socket AddressFamily.InterNetwork SocketType.Stream.. as follows. static void Main string args Socket MyPing new Socket AddressFamily.InterNetwork SocketType.Stream ProtocolType.Unspecified.. args Socket MyPing new Socket AddressFamily.InterNetwork SocketType.Stream ProtocolType.Unspecified MyPing.Connect 172.24.18.240..

Question about terminating a thread cleanly in .NET

http://stackoverflow.com/questions/3632149/question-about-terminating-a-thread-cleanly-in-net

impossible . A good example of what I mean here is the Socket class. If the thread is blocked on a call to Send or Receive..

Instantly detect client disconnection from server socket

http://stackoverflow.com/questions/722240/instantly-detect-client-disconnection-from-server-socket

have the following code in my AcceptCallBack method static Socket handler null public static void AcceptCallback IAsyncResult.. AcceptCallback IAsyncResult ar Accept incoming connection Socket listener Socket ar.AsyncState handler listener.EndAccept ar.. IAsyncResult ar Accept incoming connection Socket listener Socket ar.AsyncState handler listener.EndAccept ar I need to find a..