1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-19 19:06:45 -05:00
OpenDiablo2/d2networking/d2client/server_connection.go

16 lines
458 B
Go
Raw Normal View History

package d2client
import (
"github.com/OpenDiablo2/OpenDiablo2/d2networking"
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket"
)
// ServerConnection is an interface for abstracting local and
// remote server connections.
type ServerConnection interface {
2020-06-18 14:11:04 -04:00
Open(connectionString string, saveFilePath string) error
Close() error
SendPacketToServer(packet d2netpacket.NetPacket) error
SetClientListener(listener d2networking.ClientListener)
}