Click here to Skip to main content
16,006,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: convertion Pin
Anonymous16-Aug-05 4:38
Anonymous16-Aug-05 4:38 
GeneralRe: convertion Pin
Darryl Borden16-Aug-05 5:28
Darryl Borden16-Aug-05 5:28 
GeneralRe: convertion Pin
Anonymous16-Aug-05 5:54
Anonymous16-Aug-05 5:54 
GeneralC# compilator Pin
Anonymous16-Aug-05 3:31
Anonymous16-Aug-05 3:31 
GeneralRe: C# compilator Pin
Joel Lucsy16-Aug-05 4:20
Joel Lucsy16-Aug-05 4:20 
GeneralRe: C# compilator Pin
Anonymous16-Aug-05 4:39
Anonymous16-Aug-05 4:39 
GeneralRe: C# compilator Pin
Dan Neely16-Aug-05 7:28
Dan Neely16-Aug-05 7:28 
Generalsocket again Pin
cyrus10916-Aug-05 3:31
cyrus10916-Aug-05 3:31 
hi,
Could anyone tell me how to setup a sockets to listen to a specific port for anytype of connection both tcp or udp.

The code i use for the moment is:

ServerSocket = new Socket(AddressFamily.InterNetwork,SocketType.Raw,ProtocolType.IP);
IPEndPoint ipLocal = new IPEndPoint (IPAddress.Parse(GetIp(GetInterface())),GetPort());
// Bind to local IP Address...
ServerSocket.Bind(ipLocal);
// Start listening...
ServerSocket.Listen(50);
// Create the call back for any client connections...
ServerSocket.BeginAccept(new AsyncCallback (OnClientConnect), null);

this gives an error at the beginaccept method

thx for the help
GeneralRe: socket again Pin
mohammad92916-Aug-05 20:12
mohammad92916-Aug-05 20:12 
GeneralParsing Time and Date Pin
Anonymous16-Aug-05 3:01
Anonymous16-Aug-05 3:01 
GeneralTrustFailure exception Pin
zakharov_v16-Aug-05 2:55
zakharov_v16-Aug-05 2:55 
GeneralRe: TrustFailure exception Pin
zakharov_v16-Aug-05 20:06
zakharov_v16-Aug-05 20:06 
GeneralActive Tab, change Colour Pin
zaboboa16-Aug-05 2:47
zaboboa16-Aug-05 2:47 
GeneralRe: Active Tab, change Colour Pin
Alomgir Miah16-Aug-05 6:14
Alomgir Miah16-Aug-05 6:14 
GeneralRe: Active Tab, change Colour Pin
zaboboa16-Aug-05 8:00
zaboboa16-Aug-05 8:00 
GeneralRe: Active Tab, change Colour Pin
Mohamad Al Husseiny16-Aug-05 8:55
Mohamad Al Husseiny16-Aug-05 8:55 
GeneralExe file icon Pin
Ming Luo16-Aug-05 2:10
Ming Luo16-Aug-05 2:10 
GeneralRe: Exe file icon Pin
mohammad92916-Aug-05 2:17
mohammad92916-Aug-05 2:17 
GeneralRe: Exe file icon Pin
S. Senthil Kumar16-Aug-05 3:01
S. Senthil Kumar16-Aug-05 3:01 
GeneralRe: Exe file icon Pin
Ami Bar16-Aug-05 18:35
Ami Bar16-Aug-05 18:35 
GeneralAdding ToolTip to ListView Subitem Pin
Member 145978316-Aug-05 0:11
Member 145978316-Aug-05 0:11 
GeneralRe: Adding ToolTip to ListView Subitem Pin
mav.northwind16-Aug-05 0:36
mav.northwind16-Aug-05 0:36 
GeneralRe: Adding ToolTip to ListView Subitem Pin
Alomgir Miah16-Aug-05 3:47
Alomgir Miah16-Aug-05 3:47 
GeneralRe: Adding ToolTip to ListView Subitem Pin
Member 145978319-Aug-05 23:43
Member 145978319-Aug-05 23:43 
GeneralC# How to run Remote process Pin
mohammad92915-Aug-05 23:50
mohammad92915-Aug-05 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.