Project

General

Profile

Statistics
| Revision:

root / src / peer / channels / SenderTCP.java @ 3

History | View | Annotate | Download (492 Bytes)

1
package peer.channels;
2

    
3
import java.io.IOException;
4
import java.net.InetAddress;
5
import java.net.Socket;
6

    
7
/**
8
 * SenderTCP
9
 */
10
public class SenderTCP implements Sender {
11

    
12
        private Socket socket;
13

    
14
        public SenderTCP() {
15
                
16
        }
17

    
18
        @Override
19
        public void send(byte[] message) {
20
                
21
        }
22

    
23
        @Override
24
        public void init(InetAddress address, int port) {
25
                try {
26
                        socket = new Socket(address, port);
27
                } catch (IOException e) {
28
                        e.printStackTrace();
29
                }
30
        }
31

    
32
        @Override
33
        public void destroy() {
34

    
35
        }
36

    
37
        
38
}