On Fri, 11 Feb 2011 07:50:46 +0100 Michael Taubert <mich...@arachnodroid.de>
said:

> Good morning everyone,
> 
> how do I identify the port a client has been connected to?
> 
> I've got a server that is opening two ports for different purposes. When a

on the server side you will create 2 Ecore_Con_Server objects - each listens ON
a specific port that you set it up to listen on. when the client joins u get
the client handle. FROM the client handle u can get the server handle. this
tells you which server (And thus which port) it connected to.

> client connects, I could not figure out how to identify the port, in the
> Ecore_Con_Client_Add-callback. Fortunately, the server listens on a public IP
> and on localhost, so I thought about to identify the connections through the
> ip address. But anyone got a more precise approach for this?
> 
> Thanks,
> Michael
> 
> 
> 
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to