Register for your free account! | Forgot your password?

You last visited: Today at 01:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Network Sockets

Discussion on Network Sockets within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 23
Received Thanks: 2
Post Network Sockets

Instead of the TcpListener here
Code:
gateway_server = new TcpListener(IPAddress.Parse("127.0.0.1"), 16000);
gateway_server.Start();
GatewayTunnel = gateway_server.AcceptTcpClient();
gateway_server.Stop();
gateway_server_transferBuffer = new TransferBuffer(4096, 0, 0);
gateway_server_stream = GatewayTunnel.GetStream();
I want to use Socket.Bind, Socket.Listen and then .Accept ... but how do I do it without the GetStream() thing
ReviveSRO is offline  
Old 06/19/2018, 19:50   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
You can directly from the Socket you accept, if you need one.

If you're trying to avoid NetworkStream entirely you'll need to use the socket's Receive and Send functions directly instead.
DaxterSoul is offline  
Old 06/20/2018, 08:06   #3
 
elite*gold: 0
Join Date: Aug 2013
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by DaxterSoul View Post
If you're trying to avoid NetworkStream entirely you'll need to use the socket's Receive and Send functions directly instead.
The problem is using Send and Receive directly isn't passing any packets. but when using a NetworkStream it works fine. I don't wanna use Stream and want to directly use Send and Receive.

So is there any working example that uses a Socket.Listen instead of a TCPListener
ReviveSRO is offline  
Old 06/21/2018, 14:54   #4

 
AceSpace's Avatar
 
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
Is this what you're looking for?
AceSpace is offline  
Old 06/21/2018, 17:18   #5
 
elite*gold: 0
Join Date: Aug 2013
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by Locklyon View Post
Is this what you're looking for?
Seems like it.. Thanks Locklyon ... I will read it when I am back home and revert back to this thread with my feedback
ReviveSRO is offline  
Reply


Similar Threads Similar Threads
Moonbox,sockets,drops
09/14/2006 - Conquer Online 2 - 14 Replies
Okay, well, I will start out with being clear on this message. "Everything in the game seems to do with percentage". What I mean by this is, every monster you kill, there is a percentage that it will drop a Meteor, Dragonball, ref-Super item. (Depending on if the Monster was programmed to drop certain items or not) This also apply's to upgrading, there is X amount of chance that the item will upgrade, or X amount of chance that an item will socket. Even Moonbox. I highly doubt, that each...
sockets bah
06/22/2006 - Conquer Online 2 - 5 Replies
just upgrading normally ive made sok tao cap and sok archer coat its pure luck nothing to do with any so called "tricks" i have a friend who makes sockets for a living he showed me his warehouses every one is filled with met scrolls SPAMMING METS IS THE ONLY WAY TO GET SOCKETS ending pending...



All times are GMT +1. The time now is 01:09.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.