Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WinSock
- {
- public Socket sock;
- public byte[] data;
- .....
- }
- var data = new byte[2058];
- data = WinSock.data;
- private class WinSock
- {
- private Socket sock;
- private byte[] data;
- .....
- public byte[] getdata()
- {
- get {return data;}
- }
- }
- WinSock ws = new WinSock();
- var data = new byte[2058];
- data = ws.getdata();
- public class WinSock {
- private Socket _socket;
- private byte[] _data;
- public Socket Socket {
- get { return _socket; }
- }
- public byte[] Data {
- get { return _data; }
- }
- }
- public class WinSock {
- public Socket Socket { get; private set; }
- public byte[] Data { get; private set; }
- }
- private class WinSock
- {
- private Socket sock;
- private byte[] data;
- .....
- public byte[] Data
- {
- get { return data; }
- }
- }
- private class WinSock
- {
- private Socket sock;
- private byte[] data;
- .....
- // Read at most length bytes of data to buffer starting at offset
- // and return the number of bytes read
- public int Read(byte[] buffer, int offset, int length)
- {
- // ...
- }
- }
- WinSock ws = new WinSock();
- var data = new byte[2058];
- int bytesRead = ws.Read(data, 0, data.Length);
- public Socket Sock { get; private set; }
- public byte[] Date { get; private set; }
- public class WinSock
- {
- private Socket sock;
- private byte[] data;
- public byte[] Data
- {
- get { return data; }
- set { data = value; }
- }
- }
Add Comment
Please, Sign In to add comment