cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
comm.py
Go to the documentation of this file.
1 # /*******************************************************************************
2 # * Copyright 2016 -- 2022 IBM Corporation
3 # *
4 # * Licensed under the Apache License, Version 2.0 (the "License");
5 # * you may not use this file except in compliance with the License.
6 # * You may obtain a copy of the License at
7 # *
8 # * http://www.apache.org/licenses/LICENSE-2.0
9 # *
10 # * Unless required by applicable law or agreed to in writing, software
11 # * distributed under the License is distributed on an "AS IS" BASIS,
12 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # * See the License for the specific language governing permissions and
14 # * limitations under the License.
15 # *******************************************************************************/
16 
17 # *
18 # * cloudFPGA
19 # * Copyright IBM Research, All Rights Reserved
20 # * =============================================
21 # * Created: Mar. 2021
22 # * Authors: FAB, WEI, NGL, DID
23 # *
24 # * Description:
25 # * A Python library with functions for accessing cFRM and create/delete images, instances, clusters etc.
26 # *
27 # *
28 
29 import os
30 import sys
31 import requests
32 import json
33 import time
34 import datetime
35 
36 from mngmt import cFuser, cFcluster
37 
38 CF_DEFAULT_PORT = 2718
39 
40 
41 def send(cluster: cFcluster, node_id, data_obj, proto='udp', port=CF_DEFAULT_PORT):
42  print("NOT YET IMPLEMENTED")
43  return -1
44 
45 
46 def recv(cluster: cFcluster, node_id, data_obj, proto='udp', port=CF_DEFAULT_PORT):
47  print("NOT YET IMPLEMENTED")
48  return -1
49 
def recv(cFcluster cluster, node_id, data_obj, proto='udp', port=CF_DEFAULT_PORT)
Definition: comm.py:46
def send(cFcluster cluster, node_id, data_obj, proto='udp', port=CF_DEFAULT_PORT)
Definition: comm.py:41