About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
[solved]multiple TCP connection ?
Author Message
RedcrowProd Offline
Bronze Supporter

Post: #1
[solved]multiple TCP connection ?
Hey, so i was doing some test...


i have my port 65535 that is set for my principal TCP co,

i want to have another port set up for my second TCP co,

i cant seems to be able to have it working.

my code looks kinda like that:

Code:
(server)
Connection connectionMC;
Socket socket;
SockAddr sockaddr;

   sockaddr.fromText("192.168.0.11:60000");
   socket.createTcp(sockaddr);
  
   socket.bind(sockaddr);
   socket.block(false);
   socket.listen();
   socket.connect(sockaddr);
  
   connectionMC.tcpNoDelay(true);

connectionMC.serverAcceptClient(socket);

(client)
SockAddr addr; addr.fromText("192.168.0.11:6000");
clientConnectToServer(addr);
tcpNoDelay(true);

client seems to be find, but server doesnt wanna allow any other connection,

i had the same issue with the UDP, same idea behind it... am i missing something ?

thanks for your time =)

---

my second question was about Ambiant occlusion, is there any way to achieve this in EE?
(This post was last modified: 12-09-2015 06:31 PM by RedcrowProd.)
12-08-2015 04:25 AM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
RE: multiple TCP connection ?
I don't know about the networking; but for you second question, set D.ambientMode().
12-08-2015 08:31 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: multiple TCP connection ?
Hi,

On server please use ConnectionServer class, and on the Client use Connection class.
You can take a look at included tutorials, there are 2 tutorials for that.
12-08-2015 08:51 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Bronze Supporter

Post: #4
RE: multiple TCP connection ?
okay thanks tottel smile so i guess its not by item but the entire game ?

I did esenthel, but there's some stuff i didnt wanted to use on the connexion server, and i thought it would be fine with only connection as a class pfft since there's serveracceptclient;

but i'll use connexion server from now on wink
12-09-2015 01:33 AM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #5
RE: multiple TCP connection ?
If you want ambient occlusion for just a single object (but not dynamic or affected by other objects), you can always bake AO in a 3d program and multiply it with your diffuse map in photoshop.
12-09-2015 08:58 AM
Find all posts by this user Quote this message in a reply
Post Reply